public class Student {
    private String name;
    private int age;
    public Student(String n, int a)
    {
        name = n;
        age = a;
    }

    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }

    public void print()
    {
        System.out.println("你好我是学生，名字是：" + name + "，年龄：" + age);
    }
}
